const db = require("../../middleware/db");
const Sequelize = require("sequelize");
module.exports = sys_control_type = db.define("sys_control_type", {
  name: {
    type: Sequelize.STRING(100),
    allowNull: false,
    defaultValue: "",
    comment: "控件名称",
  },
  module_key: {
    type: Sequelize.STRING(100),
    allowNull: false,
    defaultValue: "",
    comment: "组件key",
  },
  data_lenght: {
    type: Sequelize.INTEGER(11),
    allowNull: false,
    defaultValue: "50",
    comment: "数据长度",
  },
});

// sys_control_type.sync({ force: true });
